package jobs.job2;

public class Message {

    String message;
    String name;
    int code;//如果为-1，则表明服务器给客户端分配随机名称，否则表示谁发的消息


    public Message(String message, String name, int code) {
        this.message = message;
        this.name = name;
        this.code = code;
    }

    @Override
    public String toString() {
        return message + "\0" + name + "\0" + code;
    }
}